@extends('layouts.app')
@section('title','热门服务')
@section('content')

@include('staticpages.remen.add')

<!-- start: Content -->
<div class="row-fluid">		
	<div class="box span12">
		<div class="box-header" data-original-title="">
			<h2><i class="icon-user"></i><span class="break"></span>热门服务</h2>
		</div>
		<div class="box-content">
			<span style='color:red;'>注：默认为4个热门，最少有4个推荐，最多只能添加4个热门，必须完成项目选择；</span>
			<table class="table table-striped" >
				<thead>
					<tr>
				  		<th style='width:10%;'>
				  			<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#remen">添加</button>
				  		</th>
				  	</tr>
				  </thead>
			</table>
			<table class="table table-bordered table-hover">
			<thead>
			  	<tr>
					<th style='width:50%'>单项服务</th>
					<th style='width:8%;'>现价(元)</th>
					<th style='width:8%;'>会员价(元)</th>
					<th style='width:8%;'>原价(元)</th>
					<th style='width:10%;'>状态</th>
					<th style='width:8%;'>操作</th>
			  	</tr>
			</thead>   
			<tbody>
				@foreach($hot as $hv)
					<tr>
						<td>
							<img src="{{ $hv->path }}"style='width:240px;height:133px;float:left;margin-right: 10px;'>
							<div style='float:left;'>
								<span style='float:left;font-weight:bold;'>{{ $hv->title }}</span><br>
								<p style='float:left;width:225px;'>
									{{ $hv->commit }}
								</p>
							</div>
						</td>
						<td class="center"  style='line-height: 150px;'>{{ $hv->price }}</td>
						<td class="center" style='line-height: 150px;'>{{ $hv->is_price }}</td>
						<td class="center" style='line-height: 150px;'>{{ $hv->vip_price }}</td>
						<td class="center" style='line-height: 150px;color:red;'>推荐</td>
						<td class="center" style='text-align: center;line-height: 150px;'>
							<a class="btn btn-danger" href='{{ URL("app/remen/$hv->id/edit") }}'>
								删除
							</a>
						</td>
					</tr>
				@endforeach
			  </tbody>
		  </table>
		</div>
	</div><!--/span-->

</div><!--/row-->
<!-- end: Content -->

@stop